Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Fixes issues with the System.Net.Http tests #1975

Merged
merged 1 commit into from
Jun 23, 2015

Conversation

mmitche
Copy link
Member

@mmitche mmitche commented Jun 9, 2015

  • Tests were not running because the directories were not named properly.
  • Rename test project to match the correct name.
  • Fix typo in resource strings.

<data name="net_http_client_send_canceled" xml:space="preserve">
<value>Request for {0} was canceled.</value>
<data name="net_http_client_send_cancelled" xml:space="preserve">
<value>Request for {0} was cancelled.</value>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a misprint. It was explicitly spelled that way (with one "L"). There are two accepted spellings of the word "canceled". It turns out that much of the .NET Framework is inconsistent on this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay will revert this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. We've tried to standardized on one 'l' (except in "cancellation", which has two 'l's), e.g. "OperationCanceledException". There was some usage in the framework that predated that, though.

@davidsh
Copy link
Contributor

davidsh commented Jun 9, 2015

cc: @weshaggard , @ericstj @SidharthNabar

@stephentoub
Copy link
Member

@dotnet-bot test this please

@mmitche
Copy link
Member Author

mmitche commented Jun 9, 2015

@stephentoub Was this to retest after project.lock.json fixes? If so, I think I have to merge to head and push again.

@stephentoub
Copy link
Member

It was to re-test after I checked in #1974.

@mmitche
Copy link
Member Author

mmitche commented Jun 9, 2015

@stephentoub yeah, this will just retest the old merge. Let me remerge first.

@stephentoub
Copy link
Member

Looks like 10 tests are failing on Linux, mostly related to globalization.

@davidsh
Copy link
Contributor

davidsh commented Jun 10, 2015

@mmitche Are you looking at the test failures for this PR?

@stephentoub
Copy link
Member

I took a quick look at them in the CI report; I believe they're all related to #846 and should simply be marked as [ActiveIssue(846, PlatformID.AnyUnix)] to suppress their execution on Linux and OSX. Most of them are due to a lack of support for string normalization, and one has to do with a lack of proper encoding support.

@davidsh
Copy link
Contributor

davidsh commented Jun 10, 2015

@stephentoub How did the tests pass before this PR? I.e., when the System.Net.Http tests were first added, the PR build was good.

@stephentoub
Copy link
Member

How did the tests pass before this PR?

I believe the primary issue Matt is fixing here is that the tests weren't actually being run then, or at least weren't being run on Linux, because of the scripting expecting a specific directory structure that this library didn't match.

@mmitche
Copy link
Member Author

mmitche commented Jun 10, 2015

Yes that's the case. These may need to be disabled on Linux for now.

@davidsh
Copy link
Contributor

davidsh commented Jun 10, 2015

ok. Once you fix the tests (or disable them), then LGTM.

@mmitche
Copy link
Member Author

mmitche commented Jun 15, 2015

@davidsh I'm having trouble getting the build to reference xunit.netcore.extensions (contains the ActiveIssue attribute) without floating the set of packages used with System.Net.Http. The newest packages appear to require use of the newest dnx.exe, I've PR'd the update to DNX as #2052 and am waiting on that to test again.

@mmitche
Copy link
Member Author

mmitche commented Jun 16, 2015

@davidsh Currently blocked on the dnx update

@davidsh
Copy link
Contributor

davidsh commented Jun 23, 2015

@dotnet-bot test this please

@mmitche
Copy link
Member Author

mmitche commented Jun 23, 2015

@davidsh I might have to do some tweaks, not exactly sure what state I left this branch. Let me give it a quick try and we'll see how it goes.

@mmitche mmitche force-pushed the fix-net-http-tests branch from b6a0a02 to 7657a51 Compare June 23, 2015 15:57
* Tests were not running because the directories were not named properly.
* Rename test project to match the correct name.
* Fix typo in resource strings.
@mmitche mmitche force-pushed the fix-net-http-tests branch from 7657a51 to 36b6d6b Compare June 23, 2015 16:01
@davidsh
Copy link
Contributor

davidsh commented Jun 23, 2015

@mmitche The build finished successfully. So, I think this can be merged now.

@mmitche
Copy link
Member Author

mmitche commented Jun 23, 2015

(thank goodness :)) Yes.

mmitche added a commit that referenced this pull request Jun 23, 2015
Fixes issues with the System.Net.Http tests
@mmitche mmitche merged commit df881ff into dotnet:master Jun 23, 2015
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Fixes issues with the System.Net.Http tests

Commit migrated from dotnet/corefx@df881ff
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants